<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>申请管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/liuxue/yyApplySchool/">申请列表</a></li>
		<!--<shiro:hasPermission name="liuxue:yyApplySchool:edit"><li><a href="${ctx}/liuxue/yyApplySchool/form">申请添加</a></li></shiro:hasPermission>-->
	</ul>
	<form:form id="searchForm" modelAttribute="yyApplySchool" action="${ctx}/liuxue/yyApplySchool/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>学生：</label>
				<sys:treeselect id="student" name="student.id" value="${recommend.student.id}" labelName="user.name" labelValue="${recommend.student.name}"
					title="学生" url="/sys/office/treeData?type=3&userType=5" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>学生</th>
				<th>院校</th>
				<th>院系</th>
				<th>专业</th>
				<th>录取要求</th>
				<th>联系方式</th>
				<th>网申链接</th>
				<th>网申账号</th>
				<th>申请状态</th>
				<th>录取结果</th>
				<shiro:hasPermission name="liuxue:yyApplySchool:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="yyApplySchool">
			<tr>
				<td>
					<a href="${ctx}/liuxue/student/form?id=${yyApplySchool.student.id}">
						${yyApplySchool.student.name}
					</a>
				</td>
				<td><a href="${ctx}/liuxue/yyApplySchool/form?id=${yyApplySchool.id}">
					${yyApplySchool.school.schoolName}
				</a></td>
				<td>
					${yyApplySchool.department}
				</td>
				<td>
					${yyApplySchool.profession}
				</td>
				<td>
					${yyApplySchool.adRequire}
				</td>
				<td>
					${yyApplySchool.schContact}
				</td>
				<td>
					${yyApplySchool.webLink}
				</td>
				<td>
					${yyApplySchool.webAccount}
				</td>
				<td>
					${fns:getDictLabel(yyApplySchool.applyStatus, 'apply_status', '')}
				</td>
				<td>
					${fns:getDictLabel(yyApplySchool.applyResult, 'apply_result', '')}
				</td>
				<shiro:hasPermission name="liuxue:yyApplySchool:edit"><td>
    				<a href="${ctx}/liuxue/yyApplySchool/form?id=${yyApplySchool.id}">修改</a>
					<a href="${ctx}/liuxue/yyApplySchool/delete?id=${yyApplySchool.id}" onclick="return confirmx('确认要删除该申请吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>